﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace KaoQin.WPFApp.ConHelper
{
    public class LeaveKTypeConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            switch (value.ToString())
            { 
                case "0":
                    return "事假";
                case "1":
                    return "病假";
                case "2":
                    return "年假";
                case "3":
                    return "产假";
                case "4":
                    return "婚假";
                case "5":
                    return "其他";
                default:
                    return string.Empty;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
